/**
 * Created by dukes on 2016/3/15.
 */
class WarehouseTab extends eui.Component{
    public constructor(){
        super();
        this.skinName = "skins.scene.elements.WareHouseTabSkin";
    }
    private img_up:eui.Image;
    private img_down:eui.Image;
    public partAdded(name:string, instance:any){
        super.partAdded(name, instance);
        if( name == "img_up"){
            this.img_up = instance;
        }else if( name == "img_down"){
            this.img_down = instance;
        }
    }

    public childrenCreated(){
        super.childrenCreated();
        // if( this.itemIndex == 1){
            this.img_down.source = RES.getRes("img_fuck_guild_24");
            this.img_up.source = RES.getRes("img_fuck_guild_2");
        // }
    }
}